package com.ruoyi.sale.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 销售出库对象 t_sale_out
 * 
 * @author ruoyi
 * @date 2024-11-04
 */
@Setter
@Getter
public class SaleOut extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 销售出库单号 */
    @Excel(name = "销售出库单号")
    private String outNo;

    /** 出库状态 */
    @Excel(name = "出库状态")
    private Long status;

    /** 客户 id */
    @Excel(name = "客户 id")
    private Long customerId;

    /** 结算账户 id */
    @Excel(name = "结算账户 id")
    private Long accountId;

    /** 销售员 id */
    @Excel(name = "销售员 id")
    private Long saleUserId;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outTime;

    /** 销售订单 id */
    @Excel(name = "销售订单号")
    private String orderNo;

    /** 合计数量 */
    @Excel(name = "合计数量")
    private Long number;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Long deleted;

    /** 销售出库产品信息 */
    private List<SaleOutProduct> saleOutProductList;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("outNo", getOutNo())
            .append("status", getStatus())
            .append("customerId", getCustomerId())
            .append("accountId", getAccountId())
            .append("saleUserId", getSaleUserId())
            .append("outTime", getOutTime())
            .append("orderNo", getOrderNo())
            .append("number", getNumber())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
            .append("saleOutProductList", getSaleOutProductList())
            .toString();
    }
}
